package com.mc.fastkit.ext

fun List<Any>?.sizeOrElse(size: Int): Int {
    return this?.size ?: size
}

fun Map<Any, Any>?.sizeOrElse(size: Int): Int {
    return this?.size ?: size
}

fun Set<Any>?.sizeOrElse(size: Int): Int {
    return this?.size ?: size
}